<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>社交网站投票活动列表样式展示</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        :root {
            --primary-color: #4263eb;
            --secondary-color: #fa5252;
            --light-gray: #f8f9fa;
            --medium-gray: #e9ecef;
            --dark-gray: #6c757d;
            --text-color: #212529;
            --success-color: #28a745;
            --warning-color: #ffc107;
            --danger-color: #dc3545;
            --transition: all 0.2s ease;
        }
        
        body {
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            background-color: var(--light-gray);
            color: var(--text-color);
            line-height: 1.6;
            padding: 30px 0;
        }
        
        .container {
            max-width: 1200px;
            padding: 0 20px;
        }
        
        .page-header {
            text-align: center;
            margin-bottom: 40px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--medium-gray);
        }
        
        .list-example {
            background-color: #fff;
            border-radius: 8px;
            padding: 30px;
            margin-bottom: 40px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }
        
        .example-title {
            font-size: 1.4rem;
            margin-bottom: 25px;
            color: var(--text-color);
            padding-bottom: 12px;
            border-bottom: 1px solid var(--medium-gray);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .example-title i {
            color: var(--primary-color);
        }
        
        .example-description {
            color: var(--dark-gray);
            margin-bottom: 25px;
            font-size: 0.95rem;
        }
        
        /* 投票活动卡片通用样式 */
        .voting-card {
            border-radius: 8px;
            overflow: hidden;
            transition: var(--transition);
        }
        
        .voting-card:not(:last-child) {
            margin-bottom: 25px;
            padding-bottom: 25px;
            border-bottom: 1px solid var(--medium-gray);
        }
        
        .voting-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.08);
        }
        
        /* 投票活动状态标签 */
        .voting-status {
            display: inline-block;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
            margin-bottom: 10px;
        }
        
        .status-active {
            background-color: rgba(66, 99, 235, 0.1);
            color: var(--primary-color);
        }
        
        .status-hot {
            background-color: rgba(250, 82, 82, 0.1);
            color: var(--secondary-color);
        }
        
        .status-ending {
            background-color: rgba(255, 193, 7, 0.1);
            color: var(--warning-color);
        }
        
        .status-ended {
            background-color: rgba(108, 117, 125, 0.1);
            color: var(--dark-gray);
        }
        
        /* 组织者信息样式 */
        .organizer-info {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
            font-size: 0.9rem;
        }
        
        .organizer-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: var(--primary-color);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            margin-right: 10px;
            flex-shrink: 0;
        }
        
        .organizer-name {
            font-weight: 500;
            color: var(--text-color);
            text-decoration: none;
            margin-right: 10px;
        }
        
        .organizer-name:hover {
            color: var(--primary-color);
            text-decoration: underline;
        }
        
        .voting-time {
            color: var(--dark-gray);
            margin-right: 10px;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .voting-category {
            color: var(--primary-color);
            background-color: rgba(66, 99, 235, 0.1);
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.8rem;
        }
        
        /* 投票活动内容样式 */
        .voting-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 12px;
            transition: var(--transition);
        }
        
        .voting-title a {
            color: var(--text-color);
            text-decoration: none;
        }
        
        .voting-title a:hover {
            color: var(--primary-color);
        }
        
        .voting-description {
            color: var(--dark-gray);
            margin-bottom: 15px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        /* 投票选项样式 */
        .voting-options {
            margin: 15px 0;
        }
        
        .option-item {
            padding: 12px;
            border: 1px solid var(--medium-gray);
            border-radius: 6px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .option-item:hover {
            border-color: var(--primary-color);
            background-color: rgba(66, 99, 235, 0.03);
        }
        
        .option-item.selected {
            border-color: var(--primary-color);
            background-color: rgba(66, 99, 235, 0.05);
        }
        
        .option-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
        }
        
        .option-text {
            font-weight: 500;
        }
        
        .option-votes {
            color: var(--primary-color);
            font-size: 0.9rem;
        }
        
        .progress-container {
            height: 8px;
            background-color: var(--medium-gray);
            border-radius: 4px;
            overflow: hidden;
        }
        
        .progress-bar {
            height: 100%;
            background-color: var(--primary-color);
            border-radius: 4px;
            transition: width 0.5s ease;
        }
        
        /* 图片容器样式 */
        .voting-images {
            margin-bottom: 15px;
            border-radius: 6px;
            overflow: hidden;
        }
        
        .single-image {
            width: 100%;
            height: 220px;
            background-color: var(--medium-gray);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--dark-gray);
            font-size: 0.9rem;
        }
        
        .multi-image {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 5px;
            height: 160px;
        }
        
        .multi-image .image-item {
            background-color: var(--medium-gray);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--dark-gray);
            font-size: 0.8rem;
        }
        
        /* 投票活动详情信息 */
        .voting-details {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 15px;
            font-size: 0.9rem;
        }
        
        .detail-item {
            display: flex;
            align-items: center;
            gap: 5px;
            color: var(--dark-gray);
        }
        
        .detail-item strong {
            color: var(--text-color);
        }
        
        /* 互动数据和操作样式 */
        .voting-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.9rem;
            color: var(--dark-gray);
        }
        
        .voting-stats {
            display: flex;
            gap: 18px;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .action-buttons {
            display: flex;
            gap: 10px;
        }
        
        .action-btn {
            color: var(--dark-gray);
            background: none;
            border: none;
            padding: 3px 8px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            gap: 5px;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .action-btn:hover {
            color: var(--primary-color);
            background-color: rgba(66, 99, 235, 0.1);
        }
        
        .action-btn.liked {
            color: var(--secondary-color);
        }
        
        .action-btn.bookmarked {
            color: var(--warning-color);
        }
        
        .vote-btn, .detail-btn {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 6px 15px;
            border-radius: 4px;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .vote-btn:hover, .detail-btn:hover {
            background-color: #3351d1;
            transform: translateY(-2px);
        }
        
        .vote-btn.voted {
            background-color: var(--success-color);
        }
        
        .vote-btn.voted:hover {
            background-color: #218838;
        }
        
        .detail-btn {
            background-color: var(--medium-gray);
            color: var(--text-color);
        }
        
        .detail-btn:hover {
            background-color: #d0d7dc;
        }
        
        /* 紧凑样式特定样式 */
        .list-compact .voting-card {
            display: flex;
            gap: 15px;
        }
        
        .list-compact .voting-image-container {
            width: 140px;
            height: 140px;
            flex-shrink: 0;
        }
        
        .list-compact .voting-content {
            flex-grow: 1;
        }
        
        .list-compact .voting-title {
            font-size: 1.1rem;
            margin-bottom: 8px;
        }
        
        .list-compact .voting-description {
            font-size: 0.9rem;
            margin-bottom: 10px;
        }
        
        .list-compact .voting-options {
            margin: 10px 0;
        }
        
        .list-compact .option-item {
            padding: 8px;
            margin-bottom: 8px;
        }
        
        .list-compact .single-image {
            height: 100%;
        }
        
        .list-compact .voting-details {
            gap: 10px;
            margin-bottom: 10px;
        }
        
        /* 网格样式特定样式 */
        .list-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
        }
        
        .list-grid .voting-card {
            border: 1px solid var(--medium-gray);
            padding: 20px;
            margin-bottom: 0;
        }
        
        .list-grid .voting-images {
            margin-bottom: 15px;
        }
        
        .list-grid .single-image {
            height: 180px;
        }
        
        .list-grid .voting-actions {
            flex-wrap: wrap;
            gap: 10px;
        }
        
        /* 简约样式特定样式 */
        .list-minimal .voting-card {
            padding: 15px 0;
        }
        
        .list-minimal .voting-title {
            font-size: 1.15rem;
            margin-bottom: 8px;
        }
        
        .voting-meta {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            font-size: 0.85rem;
            color: var(--dark-gray);
            gap: 10px;
        }
        
        .meta-left, .meta-right {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            align-items: center;
        }
        
        /* 悬停效果增强 */
        .hover-lift {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .hover-lift:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 20px rgba(0,0,0,0.1);
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .list-compact .voting-card {
                flex-direction: column;
            }
            
            .list-compact .voting-image-container {
                width: 100%;
                height: 200px;
            }
            
            .voting-actions, .voting-stats, .action-buttons {
                flex-wrap: wrap;
                gap: 8px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="page-header">
            <h1>社交网站投票活动列表样式展示</h1>
            <p class="text-muted">展示不同风格的投票活动列表，支持无图和多图活动，包含完整的互动功能和投票操作</p>
        </div>
        
        <!-- 示例1：标准列表样式 -->
        <div class="list-example">
            <h3 class="example-title"><i class="fas fa-list"></i> 标准列表样式</h3>
            <p class="example-description">包含完整信息的标准投票活动列表，展示活动标题、选项、组织者信息、互动数据和操作按钮</p>
            
            <!-- 带单张图片的投票活动 -->
            <div class="voting-card hover-lift">
                <span class="voting-status status-active">正在进行</span>
                
                <div class="organizer-info">
                    <div class="organizer-avatar">社</div>
                    <a href="#" class="organizer-name">社区管理处</a>
                    <span class="voting-time"><i class="far fa-calendar-alt"></i> 6月15日-6月30日</span>
                    <span class="voting-category">社区投票</span>
                </div>
                
                <h2 class="voting-title">
                    <a href="#">社区公园新增设施投票：您希望增加哪些设施？</a>
                </h2>
                
                <p class="voting-description">为改善社区公园环境，现向居民征集新增设施的意见。请从以下选项中选择您最希望增加的两项设施，投票结果将作为我们的重要参考...</p>
                
                <div class="voting-images">
                    <div class="single-image">
                        <i class="fas fa-image me-2"></i> 社区公园现状图
                    </div>
                </div>
                
                <div class="voting-options">
                    <div class="option-item" data-option="1">
                        <div class="option-header">
                            <span class="option-text">儿童游乐设施</span>
                            <span class="option-votes">328票 (42%)</span>
                        </div>
                        <div class="progress-container">
                            <div class="progress-bar" style="width: 42%"></div>
                        </div>
                    </div>
                    
                    <div class="option-item" data-option="2">
                        <div class="option-header">
                            <span class="option-text">健身器材区</span>
                            <span class="option-votes">256票 (33%)</span>
                        </div>
                        <div class="progress-container">
                            <div class="progress-bar" style="width: 33%"></div>
                        </div>
                    </div>
                    
                    <div class="option-item" data-option="3">
                        <div class="option-header">
                            <span class="option-text">休息凉亭</span>
                            <span class="option-votes">192票 (25%)</span>
                        </div>
                        <div class="progress-container">
                            <div class="progress-bar" style="width: 25%"></div>
                        </div>
                    </div>
                </div>
                
                <div class="voting-details">
                    <div class="detail-item"><strong>参与人数：</strong>776人</div>
                    <div class="detail-item"><strong>剩余时间：</strong>10天</div>
                    <div class="detail-item"><strong>可投选项：</strong>最多2项</div>
                </div>
                
                <div class="voting-actions">
                    <div class="voting-stats">
                        <div class="stat-item">
                            <i class="far fa-eye"></i>
                            <span>1254</span>
                        </div>
                        <div class="stat-item">
                            <i class="far fa-comment"></i>
                            <span>89</span>
                        </div>
                        <div class="stat-item">
                            <i class="fas fa-chart-pie"></i>
                            <span>投票率 68%</span>
                        </div>
                    </div>
                    
                    <div class="action-buttons">
                        <button class="action-btn">
                            <i class="far fa-heart"></i>
                            <span>点赞</span>
                        </button>
                        <button class="action-btn">
                            <i class="far fa-bookmark"></i>
                            <span>收藏</span>
                        </button>
                        <button class="detail-btn">
                            <i class="fas fa-info-circle"></i>
                            <span>详情</span>
                        </button>
                        <button class="vote-btn">
                            <i class="fas fa-check"></i>
                            <span>投票</span>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 带多张图片的投票活动 -->
            <div class="voting-card hover-lift">
                <span class="voting-status status-hot">热门投票</span>
                
                <div class="organizer-info">
                    <div class="organizer-avatar">学</div>
                    <a href="#" class="organizer-name">学生会</a>
                    <span class="voting-time"><i class="far fa-calendar-alt"></i> 6月20日-6月25日</span>
                    <span class="voting-category">校园活动</span>
                </div>
                
                <h2 class="voting-title">
                    <a href="#">毕业晚会主题投票：选择您最喜欢的晚会主题</a>
                </h2>
                
                <p class="voting-description">一年一度的毕业晚会即将举行，我们为大家准备了几个晚会主题方案，请投票选出您最喜欢的一个，得票最高的主题将作为今年毕业晚会的最终主题...</p>
                
                <div class="voting-images">
                    <div class="multi-image">
                        <div class="image-item">主题1：青春纪念册</div>
                        <div class="image-item">主题2：梦想启航</div>
                        <div class="image-item">主题3：时光胶囊</div>
                    </div>
                </div>
                
                <div class="voting-options">
                    <div class="option-item" data-option="1">
                        <div class="option-header">
                            <span class="option-text">青春纪念册</span>
                            <span class="option-votes">528票 (41%)</span>
                        </div>
                        <div class="progress-container">
                            <div class="progress-bar" style="width: 41%"></div>
                        </div>
                    </div>
                    
                    <div class="option-item" data-option="2">
                        <div class="option-header">
                            <span class="option-text">梦想启航</span>
                            <span class="option-votes">435票 (34%)</span>
                        </div>
                        <div class="progress-container">
                            <div class="progress-bar" style="width: 34%"></div>
                        </div>
                    </div>
                    
                    <div class="option-item" data-option="3">
                        <div class="option-header">
                            <span class="option-text">时光胶囊</span>
                            <span class="option-votes">318票 (25%)</span>
                        </div>
                        <div class="progress-container">
                            <div class="progress-bar" style="width: 25%"></div>
                        </div>
                    </div>
                </div>
                
                <div class="voting-details">
                    <div class="detail-item"><strong>参与人数：</strong>1281人</div>
                    <div class="detail-item"><strong>剩余时间：</strong>3天</div>
                    <div class="detail-item"><strong>可投选项：</strong>1项</div>
                </div>
                
                <div class="voting-actions">
                    <div class="voting-stats">
                        <div class="stat-item">
                            <i class="far fa-eye"></i>
                            <span>2356</span>
                        </div>
                        <div class="stat-item">
                            <i class="far fa-comment"></i>
                            <span>156</span>
                        </div>
                        <div class="stat-item">
                            <i class="fas fa-chart-pie"></i>
                            <span>投票率 72%</span>
                        </div>
                    </div>
                    
                    <div class="action-buttons">
                        <button class="action-btn liked">
                            <i class="fas fa-heart"></i>
                            <span>已赞</span>
                        </button>
                        <button class="action-btn">
                            <i class="far fa-bookmark"></i>
                            <span>收藏</span>
                        </button>
                        <button class="detail-btn">
                            <i class="fas fa-info-circle"></i>
                            <span>详情</span>
                        </button>
                        <button class="vote-btn voted">
                            <i class="fas fa-check"></i>
                            <span>已投票</span>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 无图片的投票活动 -->
            <div class="voting-card hover-lift">
                <span class="voting-status status-ending">即将结束</span>
                
                <div class="organizer-info">
                    <div class="organizer-avatar">公</div>
                    <a href="#" class="organizer-name">公司行政部</a>
                    <span class="voting-time"><i class="far fa-calendar-alt"></i> 6月28日-6月30日</span>
                    <span class="voting-category">公司活动</span>
                </div>
                
                <h2 class="voting-title">
                    <a href="#">7月团建活动地点投票：选择您想去的团建地点</a>
                </h2>
                
                <p class="voting-description">为增强团队凝聚力，公司计划在7月组织一次团建活动。我们筛选了三个候选地点，请大家投票选择，得票最高的地点将作为最终团建地点...</p>
                
                <div class="voting-options">
                    <div class="option-item" data-option="1">
                        <div class="option-header">
                            <span class="option-text">海滨度假村</span>
                            <span class="option-votes">42票 (45%)</span>
                        </div>
                        <div class="progress-container">
                            <div class="progress-bar" style="width: 45%"></div>
                        </div>
                    </div>
                    
                    <div class="option-item" data-option="2">
                        <div class="option-header">
                            <span class="option-text">山林露营基地</span>
                            <span class="option-votes">31票 (33%)</span>
                        </div>
                        <div class="progress-container">
                            <div class="progress-bar" style="width: 33%"></div>
                        </div>
                    </div>
                    
                    <div class="option-item" data-option="3">
                        <div class="option-header">
                            <span class="option-text">温泉度假酒店</span>
                            <span class="option-votes">20票 (22%)</span>
                        </div>
                        <div class="progress-container">
                            <div class="progress-bar" style="width: 22%"></div>
                        </div>
                    </div>
                </div>
                
                <div class="voting-details">
                    <div class="detail-item"><strong>参与人数：</strong>93人</div>
                    <div class="detail-item"><strong>剩余时间：</strong>1天</div>
                    <div class="detail-item"><strong>可投选项：</strong>1项</div>
                </div>
                
                <div class="voting-actions">
                    <div class="voting-stats">
                        <div class="stat-item">
                            <i class="far fa-eye"></i>
                            <span>128</span>
                        </div>
                        <div class="stat-item">
                            <i class="far fa-comment"></i>
                            <span>23</span>
                        </div>
                        <div class="stat-item">
                            <i class="fas fa-chart-pie"></i>
                            <span>投票率 89%</span>
                        </div>
                    </div>
                    
                    <div class="action-buttons">
                        <button class="action-btn">
                            <i class="far fa-heart"></i>
                            <span>点赞</span>
                        </button>
                        <button class="action-btn bookmarked">
                            <i class="fas fa-bookmark"></i>
                            <span>已收藏</span>
                        </button>
                        <button class="detail-btn">
                            <i class="fas fa-info-circle"></i>
                            <span>详情</span>
                        </button>
                        <button class="vote-btn voted">
                            <i class="fas fa-check"></i>
                            <span>已投票</span>
                        </button>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 示例2：紧凑列表样式 -->
        <div class="list-example">
            <h3 class="example-title"><i class="fas fa-th-list"></i> 紧凑列表样式</h3>
            <p class="example-description">信息密度更高的紧凑布局，适合展示大量投票活动内容，左侧图片右侧文字的布局节省空间</p>
            
            <div class="list-compact">
                <!-- 带图片的投票活动 -->
                <div class="voting-card hover-lift">
                    <div class="voting-image-container">
                        <div class="single-image">
                            <i class="fas fa-image"></i>
                        </div>
                    </div>
                    
                    <div class="voting-content">
                        <span class="voting-status status-active">正在进行</span>
                        
                        <div class="organizer-info">
                            <div class="organizer-avatar">班</div>
                            <a href="#" class="organizer-name">三年级二班</a>
                            <span class="voting-time"><i class="far fa-calendar-alt"></i> 6月18日-6月22日</span>
                            <span class="voting-category">班级活动</span>
                        </div>
                        
                        <h2 class="voting-title">
                            <a href="#">班级春游地点投票</a>
                        </h2>
                        
                        <p class="voting-description">春季来临，班级计划组织一次春游活动，以下是三个候选地点，请同学们投票选择...</p>
                        
                        <div class="voting-options">
                            <div class="option-item" data-option="1">
                                <div class="option-header">
                                    <span class="option-text">植物园</span>
                                    <span class="option-votes">28票 (52%)</span>
                                </div>
                                <div class="progress-container">
                                    <div class="progress-bar" style="width: 52%"></div>
                                </div>
                            </div>
                            
                            <div class="option-item" data-option="2">
                                <div class="option-header">
                                    <span class="option-text">科技馆</span>
                                    <span class="option-votes">25票 (47%)</span>
                                </div>
                                <div class="progress-container">
                                    <div class="progress-bar" style="width: 47%"></div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="voting-details">
                            <div class="detail-item"><strong>参与：</strong>53人</div>
                            <div class="detail-item"><strong>剩余：</strong>2天</div>
                        </div>
                        
                        <div class="voting-actions">
                            <div class="voting-stats">
                                <div class="stat-item">
                                    <i class="far fa-eye"></i>
                                    <span>65</span>
                                </div>
                                <div class="stat-item">
                                    <i class="far fa-comment"></i>
                                    <span>12</span>
                                </div>
                            </div>
                            
                            <div class="action-buttons">
                                <button class="action-btn">
                                    <i class="far fa-heart"></i>
                                </button>
                                <button class="action-btn">
                                    <i class="far fa-bookmark"></i>
                                </button>
                                <button class="detail-btn">
                                    <i class="fas fa-info-circle"></i>
                                </button>
                                <button class="vote-btn">
                                    <i class="fas fa-check"></i>
                                    <span>投票</span>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 无图片的投票活动 -->
                <div class="voting-card hover-lift">
                    <div class="voting-content">
                        <span class="voting-status status-ended">已结束</span>
                        
                        <div class="organizer-info">
                            <div class="organizer-avatar">图</div>
                            <a href="#" class="organizer-name">图书馆管理处</a>
                            <span class="voting-time"><i class="far fa-calendar-alt"></i> 6月10日-6月17日</span>
                            <span class="voting-category">公共设施</span>
                        </div>
                        
                        <h2 class="voting-title">
                            <a href="#">图书馆新增图书类别投票</a>
                        </h2>
                        
                        <p class="voting-description">图书馆计划新增一批图书，现向读者征集希望增加的图书类别，请从以下选项中选择...</p>
                        
                        <div class="voting-options">
                            <div class="option-item" data-option="1">
                                <div class="option-header">
                                    <span class="option-text">科幻小说</span>
                                    <span class="option-votes">189票 (35%)</span>
                                </div>
                                <div class="progress-container">
                                    <div class="progress-bar" style="width: 35%"></div>
                                </div>
                            </div>
                            
                            <div class="option-item" data-option="2">
                                <div class="option-header">
                                    <span class="option-text">历史传记</span>
                                    <span class="option-votes">156票 (29%)</span>
                                </div>
                                <div class="progress-container">
                                    <div class="progress-bar" style="width: 29%"></div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="voting-details">
                            <div class="detail-item"><strong>参与：</strong>537人</div>
                            <div class="detail-item"><strong>结果：</strong>科幻小说胜出</div>
                        </div>
                        
                        <div class="voting-actions">
                            <div class="voting-stats">
                                <div class="stat-item">
                                    <i class="far fa-eye"></i>
                                    <span>789</span>
                                </div>
                                <div class="stat-item">
                                    <i class="far fa-comment"></i>
                                    <span>45</span>
                                </div>
                            </div>
                            
                            <div class="action-buttons">
                                <button class="action-btn liked">
                                    <i class="fas fa-heart"></i>
                                </button>
                                <button class="action-btn">
                                    <i class="far fa-bookmark"></i>
                                </button>
                                <button class="detail-btn">
                                    <i class="fas fa-info-circle"></i>
                                </button>
                                <button class="vote-btn" disabled>
                                    <i class="fas fa-lock"></i>
                                    <span>已结束</span>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 示例3：网格卡片样式 -->
        <div class="list-example">
            <h3 class="example-title"><i class="fas fa-th"></i> 网格卡片样式</h3>
            <p class="example-description">卡片式网格布局，视觉效果突出，适合图片内容丰富的投票活动展示</p>
            
            <div class="list-grid">
                <!-- 带单张图片的投票活动 -->
                <div class="voting-card hover-lift">
                    <div class="voting-images">
                        <div class="single-image">
                            <i class="fas fa-image me-2"></i> 产品设计图
                        </div>
                    </div>
                    
                    <span class="voting-status status-active">正在进行</span>
                    
                    <div class="organizer-info">
                        <div class="organizer-avatar">产</div>
                        <a href="#" class="organizer-name">产品部</a>
                        <span class="voting-time"><i class="far fa-calendar-alt"></i> 6月25日-7月5日</span>
                    </div>
                    
                    <h2 class="voting-title">
                        <a href="#">新产品LOGO设计投票</a>
                    </h2>
                    
                    <p class="voting-description">公司新产品LOGO设计征集活动已结束，现在从入围作品中选出最终方案...</p>
                    
                    <div class="voting-options">
                        <div class="option-item" data-option="1">
                            <div class="option-header">
                                <span class="option-text">方案A</span>
                                <span class="option-votes">128票 (42%)</span>
                            </div>
                            <div class="progress-container">
                                <div class="progress-bar" style="width: 42%"></div>
                            </div>
                        </div>
                        
                        <div class="option-item" data-option="2">
                            <div class="option-header">
                                <span class="option-text">方案B</span>
                                <span class="option-votes">105票 (35%)</span>
                            </div>
                            <div class="progress-container">
                                <div class="progress-bar" style="width: 35%"></div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="voting-details">
                        <div class="detail-item"><strong>参与：</strong>305人</div>
                        <div class="detail-item"><strong>剩余：</strong>7天</div>
                    </div>
                    
                    <div class="voting-actions">
                        <div class="voting-stats">
                            <div class="stat-item">
                                <i class="far fa-eye"></i>
                                <span>456</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-chart-pie"></i>
                                <span>67%</span>
                            </div>
                        </div>
                        
                        <div class="action-buttons">
                            <button class="action-btn">
                                <i class="far fa-heart"></i>
                            </button>
                            <button class="vote-btn">
                                <i class="fas fa-check"></i>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 带多张图片的投票活动 -->
                <div class="voting-card hover-lift">
                    <div class="voting-images">
                        <div class="multi-image">
                            <div class="image-item">方案1</div>
                            <div class="image-item">方案2</div>
                            <div class="image-item">方案3</div>
                        </div>
                    </div>
                    
                    <span class="voting-status status-hot">热门投票</span>
                    
                    <div class="organizer-info">
                        <div class="organizer-avatar">美</div>
                        <a href="#" class="organizer-name">美术协会</a>
                        <span class="voting-time"><i class="far fa-calendar-alt"></i> 6月22日-6月30日</span>
                    </div>
                    
                    <h2 class="voting-title">
                        <a href="#">年度最佳美术作品评选</a>
                    </h2>
                    
                    <p class="voting-description">从本年度优秀美术作品中评选出最佳作品，欢迎大家投票支持你喜欢的作品...</p>
                    
                    <div class="voting-options">
                        <div class="option-item" data-option="1">
                            <div class="option-header">
                                <span class="option-text">《山水之间》</span>
                                <span class="option-votes">325票 (48%)</span>
                            </div>
                            <div class="progress-container">
                                <div class="progress-bar" style="width: 48%"></div>
                            </div>
                        </div>
                        
                        <div class="option-item" data-option="2">
                            <div class="option-header">
                                <span class="option-text">《城市脉动》</span>
                                <span class="option-votes">218票 (32%)</span>
                            </div>
                            <div class="progress-container">
                                <div class="progress-bar" style="width: 32%"></div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="voting-details">
                        <div class="detail-item"><strong>参与：</strong>678人</div>
                        <div class="detail-item"><strong>剩余：</strong>5天</div>
                    </div>
                    
                    <div class="voting-actions">
                        <div class="voting-stats">
                            <div class="stat-item">
                                <i class="far fa-eye"></i>
                                <span>987</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-chart-pie"></i>
                                <span>69%</span>
                            </div>
                        </div>
                        
                        <div class="action-buttons">
                            <button class="action-btn liked">
                                <i class="fas fa-heart"></i>
                            </button>
                            <button class="vote-btn voted">
                                <i class="fas fa-check"></i>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 无图片的投票活动 -->
                <div class="voting-card hover-lift">
                    <span class="voting-status status-ending">即将结束</span>
                    
                    <div class="organizer-info">
                        <div class="organizer-avatar">俱</div>
                        <a href="#" class="organizer-name">足球俱乐部</a>
                        <span class="voting-time"><i class="far fa-calendar-alt"></i> 6月26日-6月30日</span>
                    </div>
                    
                    <h2 class="voting-title">
                        <a href="#">下赛季球衣颜色投票</a>
                    </h2>
                    
                    <p class="voting-description">为下赛季选择新的球衣颜色，候选颜色有三种，请会员们投票决定...</p>
                    
                    <div class="voting-options">
                        <div class="option-item" data-option="1">
                            <div class="option-header">
                                <span class="option-text">蓝色为主</span>
                                <span class="option-votes">89票 (41%)</span>
                            </div>
                            <div class="progress-container">
                                <div class="progress-bar" style="width: 41%"></div>
                            </div>
                        </div>
                        
                        <div class="option-item" data-option="2">
                            <div class="option-header">
                                <span class="option-text">红色为主</span>
                                <span class="option-votes">76票 (35%)</span>
                            </div>
                            <div class="progress-container">
                                <div class="progress-bar" style="width: 35%"></div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="voting-details">
                        <div class="detail-item"><strong>参与：</strong>217人</div>
                        <div class="detail-item"><strong>剩余：</strong>1天</div>
                    </div>
                    
                    <div class="voting-actions">
                        <div class="voting-stats">
                            <div class="stat-item">
                                <i class="far fa-eye"></i>
                                <span>245</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-chart-pie"></i>
                                <span>88%</span>
                            </div>
                        </div>
                        
                        <div class="action-buttons">
                            <button class="action-btn">
                                <i class="far fa-heart"></i>
                            </button>
                            <button class="vote-btn voted">
                                <i class="fas fa-check"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 示例4：简约列表样式 -->
        <div class="list-example">
            <h3 class="example-title"><i class="fas fa-border-all"></i> 简约列表样式</h3>
            <p class="example-description">极简风格的投票活动列表，突出活动标题和核心信息，适合注重信息获取效率的平台</p>
            
            <div class="list-minimal">
                <!-- 投票活动1 -->
                <div class="voting-card hover-lift">
                    <span class="voting-status status-active">正在进行</span>
                    
                    <h2 class="voting-title">
                        <a href="#">小区物业费使用计划投票</a>
                    </h2>
                    
                    <div class="voting-meta">
                        <div class="meta-left">
                            <a href="#" class="organizer-name">业主委员会</a> · 
                            <span class="voting-time"><i class="far fa-calendar-alt me-1"></i>6月19日-7月3日</span> · 
                            <span><i class="fas fa-users me-1"></i>328人参与</span>
                        </div>
                        <div class="meta-right">
                            <span class="me-3"><i class="far fa-eye me-1"></i> 567</span>
                            <button class="action-btn"><i class="far fa-heart"></i></button>
                            <button class="detail-btn">详情</button>
                            <button class="vote-btn">投票</button>
                        </div>
                    </div>
                </div>
                
                <!-- 投票活动2 -->
                <div class="voting-card hover-lift">
                    <span class="voting-status status-hot">热门投票</span>
                    
                    <h2 class="voting-title">
                        <a href="#">公司年会节目类型投票</a>
                    </h2>
                    
                    <div class="voting-meta">
                        <div class="meta-left">
                            <a href="#" class="organizer-name">人力资源部</a> · 
                            <span class="voting-time"><i class="far fa-calendar-alt me-1"></i>6月22日-6月28日</span> · 
                            <span><i class="fas fa-users me-1"></i>452人参与</span>
                        </div>
                        <div class="meta-right">
                            <span class="me-3"><i class="far fa-eye me-1"></i> 632</span>
                            <button class="action-btn liked"><i class="fas fa-heart"></i></button>
                            <button class="detail-btn">详情</button>
                            <button class="vote-btn voted">已投</button>
                        </div>
                    </div>
                </div>
                
                <!-- 投票活动3 -->
                <div class="voting-card hover-lift">
                    <span class="voting-status status-ending">即将结束</span>
                    
                    <h2 class="voting-title">
                        <a href="#">校园歌手大赛决赛选手晋级投票</a>
                    </h2>
                    
                    <div class="voting-meta">
                        <div class="meta-left">
                            <a href="#" class="organizer-name">学生会文艺部</a> · 
                            <span class="voting-time"><i class="far fa-calendar-alt me-1"></i>6月24日-6月26日</span> · 
                            <span><i class="fas fa-users me-1"></i>1256人参与</span>
                        </div>
                        <div class="meta-right">
                            <span class="me-3"><i class="far fa-eye me-1"></i> 2356</span>
                            <button class="action-btn"><i class="far fa-heart"></i></button>
                            <button class="detail-btn">详情</button>
                            <button class="vote-btn voted">已投</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Bootstrap JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 点赞功能交互
        document.querySelectorAll('.action-btn').forEach(btn => {
            btn.addEventListener('click', function(e) {
                e.preventDefault();
                
                // 点赞按钮交互
                if (this.querySelector('.fa-heart')) {
                    this.classList.toggle('liked');
                    const icon = this.querySelector('.fa-heart');
                    if (this.classList.contains('liked')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                    }
                }
                
                // 收藏按钮交互
                if (this.querySelector('.fa-bookmark')) {
                    this.classList.toggle('bookmarked');
                    const icon = this.querySelector('.fa-bookmark');
                    if (this.classList.contains('bookmarked')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                    }
                }
            });
        });
        
        // 投票选项选择交互
        document.querySelectorAll('.option-item').forEach(item => {
            item.addEventListener('click', function() {
                const votingCard = this.closest('.voting-card');
                const voteBtn = votingCard.querySelector('.vote-btn');
                
                // 如果已经投票，不允许再次选择
                if (voteBtn.classList.contains('voted')) return;
                
                // 检查是否允许多选（这里简单判断有3个以上选项的为多选）
                const options = votingCard.querySelectorAll('.option-item');
                const isMultiSelect = options.length > 2;
                
                if (!isMultiSelect) {
                    // 单选模式，先取消其他选项的选中状态
                    options.forEach(opt => opt.classList.remove('selected'));
                }
                
                // 切换当前选项的选中状态
                this.classList.toggle('selected');
                
                // 更新投票按钮状态
                const hasSelected = votingCard.querySelector('.option-item.selected') !== null;
                if (hasSelected) {
                    voteBtn.removeAttribute('disabled');
                } else {
                    if (!voteBtn.classList.contains('voted')) {
                        voteBtn.setAttribute('disabled', 'disabled');
                    }
                }
            });
        });
        
        // 投票按钮交互
        document.querySelectorAll('.vote-btn:not([disabled])').forEach(btn => {
            btn.addEventListener('click', function(e) {
                e.preventDefault();
                
                const votingCard = this.closest('.voting-card');
                const selectedOptions = votingCard.querySelectorAll('.option-item.selected');
                
                // 如果没有选择选项，不执行操作
                if (selectedOptions.length === 0) return;
                
                this.classList.toggle('voted');
                const icon = this.querySelector('i');
                const text = this.querySelector('span');
                
                if (this.classList.contains('voted')) {
                    icon.classList.remove('fas', 'fa-check');
                    icon.classList.add('fas', 'fa-check');
                    if (text) text.textContent = '已投票';
                    
                    // 模拟投票后禁用选项选择
                    votingCard.querySelectorAll('.option-item').forEach(item => {
                        item.style.cursor = 'default';
                        item.removeEventListener('click', function() {});
                    });
                } else {
                    if (text) text.textContent = '投票';
                    
                    // 恢复选项选择功能
                    votingCard.querySelectorAll('.option-item').forEach(item => {
                        item.style.cursor = 'pointer';
                    });
                }
            });
        });
        
        // 详情按钮交互
        document.querySelectorAll('.detail-btn').forEach(btn => {
            btn.addEventListener('click', function(e) {
                e.preventDefault();
                const votingTitle = this.closest('.voting-card').querySelector('.voting-title a').textContent;
                alert(`查看"${votingTitle}"的详细信息`);
            });
        });
    </script>
</body>
</html>
    
